package ch4;

import java.util.Scanner;

public class Zxf4 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入工资");
        double a=in.nextDouble();
        if (a<=3500){
            System.out.println("无个人税");
        }
        if (a>15000){
            double b=(8000-3500)*0.05+(15000-8000)*0.1+(a-15000)*0.15;
            System.out.println("个税"+b+"元");
        }else if (a>8000){
            double b=(8000-3500)*0.05+(a-8000)*0.1;
            System.out.println("个税"+b+"元");
        }else if (a>=3500){
            double b=(a-3500)*0.05;
            System.out.println("个税"+b+"元");
        }
    }
}
